package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.SocialUser;
import com.atguigu.gulimall.auth.vo.UserLoginVo;
import com.atguigu.gulimall.auth.vo.UserRegisVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author 小坏
 * @Date 2021/1/15 14:44
 * @Version 1.0
 * @program: 父工程 gulimall 万物起源之地
 * 调用会员查询存在的手机号和用户名
 */

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegisVo vo);

    @PostMapping("/member/member/login")
    R login(UserLoginVo vo);


    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody SocialUser user) throws Exception;
}
